package com.hison.service;

import com.hison.domian.entity.Category;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hison.domian.vo.CategoryVo;
import com.hison.domian.vo.PageVo;
import com.hison.util.ResponseResult;

import java.util.List;

/**
* @author hison
* @description 针对表【sg_category(分类表)】的数据库操作Service
* @createDate 2024-01-14 22:03:33
*/

public interface CategoryService extends IService<Category> {
    //查询文章分类的接口
    ResponseResult getCategoryList();

    //写博客-查询文章分类的接口
    List<CategoryVo> listAllCategory();

    //分页查询分类列表
    PageVo selectCategoryPage(Category category, Integer pageNum, Integer pageSize);

    ResponseResult deleteById(Long id);
}
